import { getInfo, setInfo } from '@/utils/storage'

export default {
  namespaced: true,
  state () {
    return {
      userInfo: getInfo() // 个人权证相关
    }
  },
  mutations: {
    // 所有mutations的第一个参数 都是state
    setUserInfo (state, info) {
      setInfo(info)
      state.userInfo = info
    }
  },
  actions: {

  },
  getters: {

  }
}
